This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Dec 8, 2016, 10:32 PM
68 Posts

list.unShift() doesn't work if the Array has only one value?

  • Category: Debugging
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1

I recently discovered that in any new xPages, or on Domino 9, the list.unshift() function does NOT work if the list (array) only has one value.  When did this break?

I need to be able to prepend a blank value in many combo boxes, even if the "list" in that field only has one value.  How do you do that now?

Dec 12, 2016, 12:42 AM
586 Posts
doh

I started with the older posts...  looks like you made good progress on your own.

Again - Code really helps...  I have no idea what this list.unshift() is or how it's being used. 

IF your problem is you want to make sure everything returned back is an array... I wouldn't try to just prepend another value...  I would try and convert the single value to an array.  An array can hold one value..  I forget how to do that... but googling should get you there.  on openntf there are some functions to force an @DbColumn and @DbLookup to an array so that would have an example there as well.

Good Luck!


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal